<div style="display:none;">
<?php 
// CALUCATIONS FOR SYSTEM GROSS & APERTURE AREAS
if (meta('RPCollectorModel') == ThermoPower-VHP10) {
	$collectoraperture = 10.61;
	$collectorgross = 18.21;
} elseif (meta('RPCollectorModel') == ThermoPower-VHP20) {
	$collectoraperture = 21.23;
	$collectorgross = 37.04;
} elseif (meta('RPCollectorModel') == ThermoPower-VHP30) {
	$collectoraperture = 31.84;
	$collectorgross = 55.86;
} elseif (meta('RPCollectorModel') == ThermoPower-VDF20) {
	$collectoraperture = 19.38;
	$collectorgross = 26.95;
} elseif (meta('RPCollectorModel') == ThermoPower-VDF30) {
	$collectoraperture = 28.78;
	$collectorgross = 39.24;
} elseif (meta('RPCollectorModel') == TitanPowerPlus-SU2) {
	$collectoraperture = 20.17;
	$collectorgross = 21.42;
} elseif (meta('RPCollectorModel') == TitanPowerPlus-SU24) {
	$collectoraperture = 24.43;
	$collectorgross = 25.93;
} elseif (meta('RPCollectorModel') == TitanPowerPlus-AA3) {
	$collectoraperture = 28.96;
	$collectorgross = 30.92;
} elseif (meta('RPCollectorModel') == TitanPowerPlus-AU32) {
	$collectoraperture = 30.53;
	$collectorgross = 31.78;
} elseif (meta('RPCollectorModel') == TitanPowerPlus-AU40) {
	$collectoraperture = 37.44;
	$collectorgross = 38.87;
} elseif (meta('RPCollectorModel') == TitanPower-AU2) {
	$collectoraperture = 20.02;
	$collectorgross = 21.80;
}
	$collectorqty = get_post_meta($post->ID, 'RPCollectorQty', true);
	$netaperture = $collectorqty * $collectoraperture;
	$grossarea = $collectorqty * $collectorgross;

// CALCULATIONS FOR ANTICIPATED ENERGY SAVINGS
if (in_category('113')) {
	$systype = 'residential';
} elseif (in_category('114')) {
	$systype = 'residential';
} else {
	$systype = 'commercial';
}

if ($systype == 'residential') {
	$natgasbtu = 16.67313;
	$electricbtu = 55.6852;
} else {
	$natgasbtu = 6.38215;
	$electricbtu = 47.47896;
}
$heatoilbtu = 29.24999;
$propanebtu = 29.61786;

$systemmbtu = get_post_meta($post->ID, 'RPEnergyProduction', true);
// $systembtu = $systemmbtu * 1000000;

if (get_post_meta($post->ID, 'RPEnergyType', true) == 'Natural Gas') {
	$annualsavings = $systemmbtu * $natgasbtu;
} elseif (get_post_meta($post->ID, 'RPEnergyType', true) == 'Electric') {
	$annualsavings = $systemmbtu * $electricbtu;
} elseif (get_post_meta($post->ID, 'RPEnergyType', true) == 'Heating Oil') {
	$annualsavings = $systemmbtu * $heatoilbtu;
} else {
	$annualsavings = $systemmbtu * $propanebtu;
}

$fifteenyearsavings = $annualsavings * 15;
$echosavings = number_format($fifteenyearsavings);

// CALUCLATIONS FOR SYSTEM COSTS
$budget = get_post_meta($post->ID, 'RPBudget', true);
$materials = $budget * 0.5;
$materialsfix = number_format($materials);
$labor = $budget * 0.4;
$laborfix = number_format($labor);
$engineering = $budget * 0.1;
$engineeringfix = number_format($engineering);
?>

</div>